home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / network / exp16116.zip / PRINTEA.ASM < prev    next >
Assembly Source File  |  1992-08-04  |  290b  |  17 lines

  1.     public    print_ether_addr
  2. print_ether_addr:
  3.     mov    cx,EADDR_LEN
  4. print_ether_addr_0:
  5.     push    cx
  6.     lodsb
  7.     mov    cl,' '            ;Don't eliminate leading zeroes.
  8.     call    byteout
  9.     pop    cx
  10.     cmp    cx,1
  11.     je    print_ether_addr_1
  12.     mov    al,':'
  13.     call    chrout
  14. print_ether_addr_1:
  15.     loop    print_ether_addr_0
  16.     ret
  17.